package com.jiunuan.live.id.generate.provider.rpc;

import com.jiunuan.live.id.generate.interfaces.IdGenerateRpc;
import com.jiunuan.live.id.generate.provider.service.IdGenerateService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
/**
 * @Author JiuNuan
 * @Date: Created in 15:39 2024/8/1
 * @Description
 */
@DubboService
public class IdGenerateRpcImpl implements IdGenerateRpc {
    @Resource
    private IdGenerateService idGenerateService;

    @Override
    public Long getSeqId(Integer id) {
        return idGenerateService.getSeqId(id);
    }

    @Override
    public Long getUnSeqId(Integer id) {
        return idGenerateService.getUnSeqId(id);
    }
}
